import axios from "axios";
const instance = axios.create({
  baseURL: "https://api.it120.cc/small4",
  //严选商城的基本路径
  //   timeout: 20000,
});

instance.interceptors.request.use(
  (config) => {
    return config;
  },
  (err) => {
    return Promise.reject(err);
  }
);

instance.interceptors.response.use(
  (res) => {
    return res;
  },
  (err) => {
    return Promise.reject(err);
  }
);

export default instance;
// 封装的axios请求
